//
//  XMUserDetailBannerCell.h
//  StarMeal
//
//  Created by 刘宇航 on 2020/4/1.
//

#import "XMTableViewCell.h"
@class XMUserModel, XMBannerUserInfoView, XMUserDetailVoiceView;
NS_ASSUME_NONNULL_BEGIN

@interface XMUserDetailBannerCell : XMTableViewCell
@property (strong, nonatomic) IBOutlet UICollectionView *collectionView;
@property (strong, nonatomic) IBOutlet UILabel *locationLabel;
@property (weak, nonatomic) IBOutlet UIButton *muteButton;

@property (nonatomic, strong) XMBannerUserInfoView *userInfoView;
@property (nonatomic, strong) XMUserDetailVoiceView *voiceView;

@property (nonatomic, strong) XMUserModel *model;

@property (nonatomic, assign) NSInteger cIndex;

@property (nonatomic, strong) UIButton *playButton;

@property (nonatomic, strong) NSMutableArray *dataArray;

@property (nonatomic, assign) BOOL isPlaying;

@property (nonatomic, copy) void (^playBlock)(XMUserDetailBannerCell *cell, UIView *playerSuperView);

@property (nonatomic, copy) void (^bannerViewScrollerBlock)(NSInteger index);

@property (nonatomic, copy) void (^muteBlock)(UIButton *sender);

@property (nonatomic, copy) void(^audioStartBlock)(XMUserDetailBannerCell *cell);

@property (nonatomic, copy) void(^audioEndBlock)(XMUserDetailBannerCell *cell);

@property (nonatomic, copy) void(^guardBlock)(void);


// 关闭视频
- (void)endPlay;
// 播放视频
- (void)startPlay;

@end

NS_ASSUME_NONNULL_END
